<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    
    <html>
    <body>
         <h:form>
         <p:panelGrid columns="2">
        <p:outputLabel value="Nome"/>
        <p:inputText  id="nome" value="#{pessoaBean.p.nome}" />
        <p:outputLabel value="Sobrenome" />
        <p:inputText  id="sobrenome" value="#{pessoaBean.p.sobrenome}"/>
        <p:outputLabel value="Endereço"/>
        <p:inputText  id="endereco" value="#{pessoaBean.p.endereco}" />
        <p:outputLabel value="Telefone"/>
        <p:inputText  id="telefone" value="#{pessoaBean.p.telefone}" />
        <p:outputLabel value="Usuário"/>
        <p:inputText  id="usuario" value="#{pessoaBean.p.usuario}" />
        <p:outputLabel value="Senha"/>
        <p:inputText type="password"  id="senha" value="#{pessoaBean.p.senha}" />
        <p:outputLabel value="Confirmar Senha"/>
        <p:inputText type="password" id="confirmarsenha" value="#{pessoaBean.confirmaSenha}" />
        <p:outputLabel value="Email"/>
        <p:inputText  id="email" value="#{pessoaBean.p.email}" />
        <p:commandButton value="Salvar" action="#{pessoaBean.salvar}"/>
        </p:panelGrid>
            </h:form>
    </body>
    
</html>
</html>
